package com.zijin.exec;

public class Text04  {
    public static void main(String[] args) {
        char[] chars = {'a', 'c', 'u', 'b', 'e', 'p', 'f', 'z'};
        java.util.Arrays.sort(chars);
        System.out.println("升序排序后: " + new String(chars));
        System.out.print("逆序输出为: ");
        for (int i = chars.length - 1; i >= 0; i--) {
            System.out.print(chars[i] + " ");
        }
    }
}
